package com.chuangke.admin.dao.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.chuangke.admin.entity.SysMenu;
@Mapper
public interface SysMenuMapper extends BaseMapper<SysMenu>{
	@Select("select * from sys_menu where id in(select menu_id from sys_role_menu where role_id in(select role_id from sys_user_role where user_id=#{userName}))")
	List<SysMenu> findByUserName(@Param("userName") String userName);
}